package com.scy.java.base;

import java.util.Scanner;

//switch...case
public class Demo08 {
    public static void main(String[] args) {
        //键盘录入星期几
        System.out.println("请输出一个整数（星期几）：");
        int week = new Scanner(System.in).nextInt();
        //使用switch...case跟week进行匹配
        switch (week){
            case 1:
                System.out.println("跑步");
                break;
            case 2:
                System.out.println("游泳");
                break;
            case 3:
                System.out.println("慢走");
                break;
            case 4:
                System.out.println("单车");
                break;
            case 5:
                System.out.println("拳击");
                break;
            case 6:
                System.out.println("爬山");
                break;
            case 7:
                System.out.println("大吃一顿");
                break;
            default:
                System.out.println("输入错误");
                break;
        }
    }
}
